package com.gdufe.studytogether.service.group;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gdufe.studytogether.domain.R;
import com.gdufe.studytogether.domain.pojo.Application;
import com.gdufe.studytogether.domain.pojo.Group;

public interface GroupService extends IService<Group> {
    R listGroup(Long pageSize,Long pageCurrent,Integer id,String groupName,Integer competitionId) throws Exception;
    R getGroupDetail(Long pageSize,Long pageCurrent,Integer id,String groupName,Integer competitionId) throws Exception;

    R addGroup(Group group) throws Exception;

    R deleteGroup(Integer id) throws Exception;

    R joinGroup(Application id) throws Exception;

    R exitGroup(Integer id) throws Exception;

    R removeMember(Integer gid,Integer uid) throws Exception;
    R updateGroup(Group group) throws Exception;
}
